export default {
    namespaced: true,
    state: {
       isShowToast:false,
       toastMsg:'手机号',
       toastType:'类型'
    },
    getters: {
    },
    mutations: {
      changeisShowToast(state,payload){
          state.isShowToast=payload.isshow;
          if(payload.isshow){
              state.toastMsg=payload.msg;
              state.toastType=payload.type
          }
      }
     
    },
    actions: {
        asyncChangeisShowToast(context,payload){
            context.commit('changeisShowToast',payload)
            setTimeout(()=>{
                context.commit('changeisShowToast',{
                    isshow:false
                })
            },1500)
        }
    },
}